package com.hw.dagl.model;

import java.io.Serializable;
import java.util.List;

public class DepartmentNode implements Serializable{
	private String nodeId;
	private String nodeName;
	private String parentNodeId;
	private String sblx;
	private String iconCls;
	private String spid;
	private String state;
	public String getState() {
		if(child!=null&&child.size()>0){
			return "closed";
		}
		return "";
	}
	public void setState(String state) {
		this.state = state;
	}
	private List<DepartmentNode> child;
	public String getNodeId() {
		return nodeId;
	}
	public String getSpid() {
		return spid;
	}
	public void setSpid(String spid) {
		this.spid = spid;
	}
	public String getSblx() {
		return sblx;
	}
	public void setSblx(String sblx) {
		this.sblx = sblx;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	public String getNodeName() {
		return nodeName;
	}
	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}
	public String getParentNodeId() {
		return parentNodeId;
	}
	public void setParentNodeId(String parentNodeId) {
		this.parentNodeId = parentNodeId;
	}
	public List<DepartmentNode> getChild() {
		return child;
	}
	public void setChild(List<DepartmentNode> child) {
		this.child = child;
	}
	
	public String getId() {
		return this.nodeId;
	}
	public List<DepartmentNode> getChildren(){
		return this.child;
	}
	
	public String getName() {
		return this.nodeName;
	}
	
	public String getText(){
		return this.nodeName;
	}
	
	public DepartmentNode(String nodeId, String nodeName, String parentNodeId,
			List<DepartmentNode> child,String sblx,String iconCls,String spid) {
		super();
		this.nodeId = nodeId;
		this.nodeName = nodeName;
		this.parentNodeId = parentNodeId;
		this.child = child;
		this.sblx = sblx;
		this.iconCls = iconCls;
		this.spid = spid;
	}
	public DepartmentNode() {
		super();
		// TODO 自动生成的构造函数存�?
	}
	
}
